from django.urls import path,re_path
from . import views
from rest_framework_jwt.views import obtain_jwt_token
urlpatterns = [
    path("register/",  views.UserAPIView.as_view()),
    re_path("mobile/(?P<mobile>1[3-9]\d{9})/", views.CheckMobileAPIView.as_view()),
    re_path("sms/(?P<mobile>1[3-9]\d{9})/", views.SMSAPIView.as_view()),
    path("login/", obtain_jwt_token),
    path("usercart/", views.UserCartAPIView.as_view()),
    path("usercartdone/", views.UserCartDoneAPIView.as_view()),
    path("userpinglun/", views.UserPinglunAPIView.as_view()),
    path(r"", views.UserCartDeleteAPIView.as_view({"delete":"del_cart"}))
]
